﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace PascalConverter
{
    public static class KeywordManager
    {
        public static string ConvertFilenameToPascalCase(string fileName)
        {
            foreach (string keyword in keyWords)
            {
                if (fileName.ContainsIgnoreCase(keyword))
                {
                    fileName = fileName.ReplaceIgnoreCaseAndConvertToPascal(keyword);
                }
            }
            return fileName;
        }

        private static ArrayList keyWords = new ArrayList()
        {
            "Ac_",
            "Def",
            "Rules",
            "Add",
            "Edit",
            "Delete",
            "Remove",
            "Update",
            "Criterion",
            "Rename",
            "Calc",
            "Score",
            "Scoring",
            "Component",
            "Admin",
            "Bright",
            "Idea",
            "Field",
            "Mapping",
            "Scores",
            "Capacity",
            "Planning",
            "Daily",
            "Table",
            "Tables",
            "Epm",
            "Gates",
            "Model",
            "Models",
            "IModel",
            "IModels",
            "Administer",
            "Financial",
            "Management",
            "Structures",
            "Org",
            "Portals",
            "Addin",
            "Mappings",
            "Code",
            "Reason",
            "Report",
            "Reports",
            "Resource",
            "Time",
            "Periods",
            "Automatic",
            "Metric",
            "Tab",
            "Vendors",
            "Content",
            "Management",
            "Rules",
            "Assign",
            "Timesheet",
            "Approval",
            "Baseline",
            "Effort",
            "Options",
            "BoAdmin",
            "_Inc",
            "Charting",
            "Cache"
        };
    }
}
